package jp.co.jalinfotec.sxt.dto;

import java.util.Date;

/** DTO for order info. */
public class OrderDto {
	
	/** User ID */
	private String userId;
	
	/**
	 * [Setter]User ID
	 * @param userId User ID
	 */
	public void setUserId(String userId) { this.userId = userId; }

	/**
	 * [Getter]User ID
	 * @return User ID
	 */
	public String getUserId() { return this.userId; }
	
	/** Order Title */
	private String title;
	
	/**
	 * [Setter]Order Title
	 * @param title Order Title
	 */
	public void setTitle(String title) { this.title = title; }

	/**
	 * [Getter]Order Title
	 * @return Order Title
	 */
	public String getTitle() { return this.title; }
	
	/** Order Type */
	private String type;
	
	/**
	 * [Setter]Order Type
	 * @param type Order Type
	 */
	public void setType(String type) { this.type = type; }

	/**
	 * [Getter]Order Type
	 * @return Order Type
	 */
	public String getType() { return this.type; }

	/** Order target date */
	private Date targetDate;

	/**
	 * [Getter]Order target date
	 * @return Order target date
	 */
	public Date getTargetDate() { return this.targetDate; }
	
	/** Default Constructor */
	public OrderDto(){}

	/**
	 * Constructor
	 * @param userId User ID
	 * @param title Order Title
	 * @param type Order Title
	 */
	public OrderDto(String userId, String title, String type){
		this.userId = userId;
		this.title = title;
		this.type = type;
		this.targetDate = new Date();
	}
}
